package com.ruoyi.system.domain.module.survey;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;
import java.math.BigDecimal;

/**
 * 问卷调查的用户填报数据对象 survey_user_record
 *
 * @author ruoyi
 * @date 2021-09-05
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@TableName("survey_user_record")
public class SurveyUserRecord implements Serializable {

    private static final long serialVersionUID = 1L;


    /**
     * $column.columnComment
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 问卷id
     */
    private Integer surveyId;

	/**
	 * 物业id
	 */
    private Integer propertyId;

	/**
	 * 小区id
	 */
	private Integer estateId;

	/**
     * 业主微信id
     */
    private Integer userId;


	@Excel(name = "用户昵称")
    private String nickName;

	@Excel(name = "绑定手机号")
    private String phoneNum;
    /**
     * 填报时间
     */

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


	@Excel(name = "小区名称")
	@TableField(exist = false)
	private String estateName;

	@TableField(exist = false)
	private String propertyName;

	@TableField(exist = false)
	private Integer eventWorkId;

	@TableField(exist = false)
	private Integer planId;

	private Integer eventTaskInfoId;


	@Excel(name = "房屋户号")
	@TableField(exist = false)
	private String roomName;


	@Excel(name = "填报时间")
	@TableField(exist = false)
	private String createTimeStr;


	@Excel(name = "问卷回答内容")
	@TableField(exist = false)
	private String answerContent;

	@Excel(name = "是否异常")
	@TableField(exist = false)
	private Integer yichang;

	@TableField(exist = false)
	private String planName;

}
